package tech.aistar.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import tech.aistar.mapper.UseraddressMapper;
import tech.aistar.pojo.UserAddress;
import java.util.List;

@Service
public class UserAddressServiceImpl implements UserAddressService {

    @Autowired
    private UseraddressMapper useraddressMapper;

    @Override
    public List<UserAddress> findByUserId(Integer userId) {
        return useraddressMapper.getByUserId(userId);
    }
}